﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EARS.App_Code
{
    public class MatricNoDB
    {
        public bool checkMatricNo(string userMatricNo)
        {
            bool check = false;
            MatricNoDBDataClass mdc = new MatricNoDBDataClass();
            List<string> listOfMatricNo = mdc.checkMatricNo();
            foreach (string MatricNo in listOfMatricNo)
            {
                if (MatricNo.Equals(userMatricNo))
                {
                    check = true;
                }
            }
            return check;
        }
    }
}